import { getTemplate } from '@/api/createResult'

const state = {
  teachingPlanId: '',
  firstTeachingPlan: {},
  templateId:{},
  typeEditTool:'UEDITOR',
  getClassfiyArr:{},
  ClassfiyageListName:[],
  getClassfiyageListName:[],
}
const mutations = {
  SET_CLASSIFY_CATElIST(store, params) {
      //推荐备课用到
     store.getClassfiyageListName = params
  },
  SET_FIRST_TEACHING_PLAN(store, params) {
   // store.firstTeachingPlan = params
   let arr = []
     if(Array.isArray(params)){
      params.map(list=>{
        arr.push(list.itemName)
      })
      }
    store.ClassfiyageListName = arr
     store.getClassfiyArr = this._vm.getClassfiyArr(params)
  },
  SET_TEACHING_PLAN_ID(state, id) {
    state.teachingPlanId = id
  },
 SET_TEMPLATE(state, obj) {
           //commit('SET_TEMPLATE',data)
         state.templatePlatformId = data
  },
}
const actions = {
}
export default {
  state,
  mutations,
  actions
}
